<?php
    include("../includes/config.php");
    include("../includes/connection.php");
    include("../includes/database.php");

    session_start();
    if (isset($_SESSION["user_email"]) && isset($_SESSION["user_name"])) {
        header("location:dashboard.php");
    }
    
    $title = "Login";
    
    include ("header.php");    
?>

<div style="">
    <form action="<?php echo $CONFIG["base_url"] ?>admin/login.php" method="POST">
        <label>Email</label>
        <input type="text" name="email"/>
        <label>Password</label>
        <input type="password" name="password"/>
        <br/>
        <input type="submit" value="Submit" class="btn btn-primary"/>
    </form>
</div>

<?php
    include ("footer.php")
?>